import java.util.Random;

/**
 * @Author DengJia
 * @Date 2021/7/28 23:43
 * @Description
 */

public class MathOpsDemo {
    public static void main(String[] args) {
        Random r = new Random();

        Random r1 = new Random(12);
        Random r2 = new Random(12);

        System.out.println(r.nextInt(2));
        System.out.println(r1.nextInt(100));
        System.out.println(r2.nextInt(100));

        System.out.println(r.nextFloat());

        int i = 10;
        int b = 5;
        int sum = i * -b;
        System.out.println(sum);
    }
}
